

import 'package:bezier_learning_demo/play_bezier2.dart';
import 'package:bezier_learning_demo/play_bezier3.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'circle_bezier.dart';
import 'circle_bezier_clip.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home:Paper()
    );
  }
}

/// 说明: 纸
class Paper extends StatefulWidget {
  @override
  _PaperState createState() => _PaperState();
}

class _PaperState extends State<Paper> {
  @override
  void initState() {
    //横屏
    SystemChrome.setPreferredOrientations(
        [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);
    //全屏显示
    SystemChrome.setEnabledSystemUIOverlays([]);
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      child: CircleBezierClipPage(),
      // child: Stack(
      //   children: <Widget>[
      //     // 表格
      //     Positioned.fill(child: CustomPaint(painter: GridPainter())),
      //   ],
      // ),
    );
  }
}
